﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IceCS.DesignPattern.Core.BuilderPattern.MobilePackage
{
    public class MobileBuilderImp1 : AbstractBasePackage, IMobileBuilder
    {
        /// <summary>
        /// 建造手机套餐的话费
        /// </summary>
        public void buildMoney()
        {
            this.mobilePackage.Money = 20.0f;
        }

        /// <summary>
        /// 建造手机套餐的短信
        /// </summary>
        public void buildShortInfo()
        {
            this.mobilePackage.ShortInfo = 400;
        }

        /// <summary>
        /// 建造手机套餐的彩铃
        /// </summary>
        public void buildMusic()
        {
            this.mobilePackage.Music = "最炫民族风";
        }

        /// <summary>
        /// 建造手机套餐的对象
        /// </summary>
        public MobilePackageModel getMobilePackage()
        {
            return this.mobilePackage;
        }
    }
}
